package com.heima;

import com.baidu.aip.ocr.AipOcr;
import org.json.JSONObject;

import java.util.HashMap;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2022/1/7 17:20
 */
public class Orc {


    //设置APPID/AK/SK
    public static final String APP_ID = "1";
    public static final String API_KEY = "5dfbcba4406844e599ce4fde0bbbf9d1";
    public static final String SECRET_KEY = "317c66714d84486b875c47dbe4e8dcaa";

    public static void main(String[] args) {
        // 初始化一个AipOcr
        AipOcr client = new AipOcr(APP_ID, API_KEY, SECRET_KEY);
        // 调用接口
        String path = "C:\\Users\\LGL\\Desktop\\1.jpeg";
        JSONObject res = client.basicGeneral(path, new HashMap<String, String>());
        System.out.println(res);

    }

}
